 <include file="Public:head"/>
	<script src="{iMicms::STATICS}/jquery-ui.js" type="text/javascript"></script>
	<link rel="stylesheet" type="text/css" href="{iMicms::STATICS}/jquery-ui.css" />
    <link rel="stylesheet" type="text/css" href="{iMicms::STATICS}/jquery-ui.theme.css" />
	<link rel="stylesheet" type="text/css" href="{iMicms::STATICS}/jquery-ui.structure.css" />
	
	<style>
.img{
  width:80px;
  height:80px;
}
.img img{
	width:100%;
	display:block;
}
.countadd{
margin-top:-10px;
}
label{
display:inline;
}
.linkp{
list-style-type:none;
margin-right:30px;
text-align:right;
color:red;
letter-spacing:5px;
}
.linkp a{
color:#000;
}
.linkp li a{
letter-spacing:2px;
}
.linkp .total{
float:right;
}
</style>
<div class="content">
         
          <div class="cLineB">
             <h4 class="left">您正在修改【{iMicms:$userinfo.item}】的信息<span class="FAQ"></span></h4>
              <div class="clr"></div>			 
              <a href="{iMicms::U('Vote/eitem',array('token'=>$_GET['token'],'id'=>$_GET['id']))}" class="right btn btn-primary btn_submit  J_ajax_submit_btn" style="margin-top:-27px;margin-right:40px">返回选手列表</a>
			 
          </div>
     <div class="msgWrap bgfc">
        
		   
		   <table class="userinfoArea">
		   <tr>
			 <input type="hidden" id="itemid" size="30" class="msgtext" style="width:80%;" value="{iMicms:$userinfo.id}">
			<div> 姓名：<input type="text" id="itemitem" name="itemitem" size="30" class="msgtext" style="width:70%;" value="{iMicms:$userinfo.item}"></div>
			<div> 排序：<input type="text" id="itemrank" name="itemrank" size="30" class="msgtext" style="width:70%;" value="{iMicms:$userinfo.rank}"></div>
			<div>票数：当前票数为：{iMicms:$userinfo.vcount}	&nbsp;&nbsp;<input type="radio" name="countadd" checked="checked" id="countadd" value="up" value=""/><label style="display:inline" for="countadd"> 加票</label>
						<input type="radio" name="countadd"  id="countzz" value="down" /><label style = "display:inline" for="countzz">减票</label>
						<input type="text" id="itemvcount" value="0" name="itemvcount" size="30" class="msgtext" style="width:40%;" value="">
			</div>
			<div>取消关注失去票数：当前数量为：{iMicms:$userinfo.dcount}	&nbsp;&nbsp;<input type="radio" name="dcountadd" checked="checked" id="dcountadd" value="up" value=""/><label style="display:inline" for="countadd"> 增加</label>
						<input type="radio" name="dcountadd"  id="dcountzz" value="down" /><label style = "display:inline" for="countzz">减少</label>
						<input type="text" id="itemdcount" value="0" name="itemdcount" size="30" class="msgtext" style="width:40%;" value="">
			</div>
			 <div>电话：<input type="text" id="itemtourl" name="itemtourl" size="30" class="msgtext" style="width:70%;" value="{iMicms:$userinfo.tourl}"></div>
			 
			<div> 封面照片：<input type="text" id="itemstartpicurl" name="itemstartpicurl" size="30" class="msgtext" style="width:50%;" value="{iMicms:$userinfo.startpicurl}">
					<a href="#" onclick="upyunPicUpload('itemstartpicurl',700,400,'{iMicms:$token}')" class="btn btn-primary btn_submit  J_ajax_submit_btn">上传</a> 
					<a href="#" onclick="viewImg('itemstartpicurl')">预览</a></div>
					<div> 照片2：<input type="text" id="itemstartpicurl2" name="itemstartpicurl2" size="30" class="msgtext" style="width:50%;"  value="{iMicms:$userinfo.startpicurl2}" >
					<a href="#" onclick="upyunPicUpload('itemstartpicurl2',700,400,'{iMicms:$token}')" class="btn btn-primary btn_submit  J_ajax_submit_btn">上传</a> 
					<a href="#" onclick="viewImg('itemstartpicurl2')">预览</a></div>

					<div> 照片3：<input type="text" id="itemstartpicurl3" name="itemstartpicurl3" size="30" class="msgtext" style="width:50%;" value="{iMicms:$userinfo.startpicurl3}">
					<a href="#" onclick="upyunPicUpload('itemstartpicurl3',700,400,'{iMicms:$token}')" class="btn btn-primary btn_submit  J_ajax_submit_btn">上传</a> 
					<a href="#" onclick="viewImg('itemstartpicurl3')">预览</a></div>

					<div> 照片4：<input type="text" id="itemstartpicurl4" name="itemstartpicurl4" size="30" class="msgtext" style="width:50%;"value="{iMicms:$userinfo.startpicurl4}" >
					<a href="#" onclick="upyunPicUpload('itemstartpicurl4',700,400,'{iMicms:$token}')" class="btn btn-primary btn_submit  J_ajax_submit_btn">上传</a> 
					<a href="#" onclick="viewImg('itemstartpicurl4')">预览</a></div>
					
					<div>简介：<br/>
			 <textarea id="content1" name="itemintro" style="width: 70%; height: 300px; "><?php echo html_entity_decode(htmlspecialchars_decode($userinfo['intro'])); ?></textarea>
			</div><br/>
			   </tr>
			 
				<tr>
				<div style="align:left;text-align:left;">
			  <a href="javascript:;" onclick="thisedit({iMicms:$userinfo.id})" class="right btn btn-primary btn_submit  J_ajax_submit_btn" style="float:left">提交</a>
				</div>
				 </tr>
		   </table>
		 
		   </div>
		   
		  
		<div style="clear:both"></div>
	<script type="text/javascript">
	$(document).ready(function(){

		});
	function thisedit(id){
	var thisitem = $("#item_"+id);
	$("#itemid").val();
	$("#itemitem").val();
	$("#itemrank").val();
	$("#itemtourl").val();
	$("#content1").val();
	$("#itemstartpicurl").val();
	$("#itemstartpicurl2").val();
	$("#itemstartpicurl3").val();
	$("#itemstartpicurl4").val();
	
			var id = $("#itemid").val();
			var item = $("#itemitem").val();
			var rank = $("#itemrank").val();
			var vcount = $("#itemvcount").val();
			var vtype  =$('input[name="countadd"]:checked').val();
			var dcount = $("#itemdcount").val();
			var dtype  =$('input[name="dcountadd"]:checked').val();
			var tourl = $("#itemtourl").val();
			var intro = $("#content1").val();
			var startpicurl = $("#itemstartpicurl").val();
			var startpicurl2 = $("#itemstartpicurl2").val();
			var startpicurl3 = $("#itemstartpicurl3").val();
			var startpicurl4 = $("#itemstartpicurl4").val();
			
			var submitData={
				id  : id,
				item : item,
				rank : rank,
				vcount : vcount,
				vtype : vtype,
				dcount : dcount,
				dtype : dtype,
				tourl : tourl,
				intro :intro,
				startpicurl : startpicurl,
				startpicurl2 : startpicurl2,
				startpicurl3 : startpicurl3,
				startpicurl4 : startpicurl4
			};		
			$.post('index.php?g=User&m=Vote&a=eitem_vote', submitData, function(bakcdata) 
			{
					var obj=eval('('+bakcdata+')');
						if(obj.success == 1)
							{
								alert(obj.msg);
								parent.location="javascript:location.reload()";
								return 0;
							}
						else
							{
								alert(obj.msg);
								return false;
							}  
				});
				$(this).dialog('close');
			
			}
			
	function dooow(objsp) {
   var obj = {id:objsp}
   var statu = confirm("确定要删除该选项么?");
     if(statu){
        $.post("{iMicms::U('Vote/del_tab')}", obj,function(data) {
		parent.location="javascript:location.reload()";
		},"json");
}
	}
	
	
 

 </script>
   </div> 
          <div class="cLine">
            <div class="pageNavigator right">
                 <div class="pages"></div>
              </div>
            <div class="clr"></div>
          </div>
  </div>
<include file="Public:footer"/>